require 'singleton'

class PollerException
  include Singleton

  attr_accessor :msg, :err
  def initialize
    self
  end

  def throw err, msg=" "
    @msg = msg
    @err = err
    self
  end
end
